<?php /* Smarty version Smarty-3.1.11, created on 2012-12-12 12:55:12
         compiled from "./smarty/templates/hotelsList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:42747395250b77ce4b53a62-26081294%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd6fbfcf42c25b8e5b3a345ec3715d03605de4c5b' => 
    array (
      0 => './smarty/templates/hotelsList.tpl',
      1 => 1355316894,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '42747395250b77ce4b53a62-26081294',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_50b77ce4cedc80_99540936',
  'variables' => 
  array (
    'hotelArray' => 0,
    'hotel' => 0,
    'roomType' => 0,
    'image' => 0,
    'ok' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50b77ce4cedc80_99540936')) {function content_50b77ce4cedc80_99540936($_smarty_tpl) {?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
        <title>EAN API TEST</title>
        <link href="css/templatemo_style.css" rel="stylesheet" type="text/css" />
        <link href="css/widget.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />

        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/ddsmoothmenu.js"></script>
        <script type="text/javascript" src="js/swfobject/swfobject.js"></script>
        <script type="text/javascript" src="js/jquery-1.8.2.js"></script>
        
        <script type="text/javascript">
            var flashvars = {};
            flashvars.cssSource = "css/piecemaker.css";
            flashvars.xmlSource = "piecemaker.xml";
	
            var params = {};
            params.play = "true";
            params.menu = "false";
            params.scale = "showall";
            params.wmode = "transparent";
            params.allowfullscreen = "true";
            params.allowscriptaccess = "always";
            params.allownetworking = "all";
  
            swfobject.embedSWF('piecemaker.swf', 'piecemaker', '960', '440', '10', null, flashvars,    
            params, null);
        </script>


        <script language="javascript" type="text/javascript">
            function clearText(field)
            {
                if (field.defaultValue == field.value) field.value = '';
                else if (field.value == '') field.value = field.defaultValue;
            }
        </script>
        <script type="text/javascript">
        function add_room()
        {
            for(i=2;i<=8;i++)
            {	
                if(document.getElementById('room'+i).style.display=="none"){
                    document.getElementById('room'+i).style.display="inline";
                    break;
                }		
            }	
        }
        </script>

        <script type="text/javascript">
            ddsmoothmenu.init({
            mainmenuid: "templatemo_menu", //menu DIV id
            orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
            classname: 'ddsmoothmenu', //class added to menu's outer DIV
            //customtheme: ["#1c5a80", "#18374a"],
            contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
            });

        </script> 
        <style>
		/*#book_span{
			display: block;
                height: 38px;
                width: 780px;
                float: left;
			}*/
            #hotel-division{
                margin: 10px auto;
                padding: 0px;
                width: 1000px;
                min-height: 200px;
            }
            #hotel-data{
                max-height: 300px;
                min-height: 200px;
            }
            #hotel-content{
                width: 780px;

                margin-top: 20px;
                margin-right: 20px; 
            }
            #hotel-details-expansion{
                display: block;
                background-color:#f58400;
                width: 998px;
                height: 20px;
                float:left;
            }

            #expansion-button{
                width: 30px;
                height: 20px;
            }
            #hotel-bottom-details{
                margin-left: 20px ;
                width: 150px;
                text-align: center;

            }
            #hotel-cancel-policy{
                width: 150px;
                text-align: center;

            }
            #hotel-reviews{
                width: 150px;
                text-align: center;
            }
            #hotel-star-rating{
                width: 220px;
                height: 20px;
                text-align: center;
            }
            #hotel-maps{
                width: 150px;
                text-align: center;
            }
            #hotel-name-price{
                display: block;
            }
            #hotel-short-desc{
                display: block;
                height: 38px;
                width: 780px;
                float: left;
            }
            #hotel-star-rating-img{
                height:20px;
                border: 0 none #fff;
                margin: 0px;
                padding: 0px;
            }
            #hotel-star-rating b{
                height: 20px;
                border: 0 none #fff;
                margin: 0px;
                padding: 0px;
                vertical-align: top;
            }
            #hotel-ribbon-offers{
                /*padding-left: 300px;*/
                height: 30px;
                width: 998px;
                text-align: end;
                padding: 0px;
            }
            #hotel-ribbon-offers span, #hotel-ribbon-offers img{
                vertical-align: bottom;
                height: 30px;
            }
            #hotel-text{
                padding-right:20px;
                font-weight: bold;  
            }
            .thumbnailImage{
                max-width: 150px;
                max-height: 150px;
                min-width: 100px;
                min-height: 100px;

                border:1px solid #666;
                margin-left: 20px;
                margin-top: 20px;

            }
            .border-on{
                border:1px solid #000; 
            }

            .inline-block{
                display: inline-block;
            }
            .left{
                float: left;
            }
            .right{
                float: right;


            }
            .marginless{
                margin: 0px;
                padding: 0px;
            }
            .spacer{

            }
            .rating{
                margin-left: 10px;
                max-width: 120px;
                height: 19px;
            }
            span.rating{
                width: 120px;
            }
            .hidden{
                visibility: hidden;
            }
			
/*////////////////////////////////////////////*/

#star_rating
{
	vertical-align:middle;
}
.hotel_options
{
    color: #FFFFFF;
    font-family: Arial,Helvetica,sans-serif;
    font-weight: bold;
	opacity:0.9;
	padding:2px;
	vertical-align:middle;
	padding-left:10px;
	padding-right:10px;
}



.link
{
	text-decoration:none !important;
	color: #FFFFFF !important;
	font-weight:bold !important;
}

.link:hover
{	
text-decoration:underline !important;
}
#hotel_tabs
{
		background-image:url(images/templatemo_middle.jpg);
		padding-left:10px;
		padding-bottom:10px;
		padding-right:10px;
		padding-top:10px;
		
}

.hotels, .rooms, .galery
{			
		
		padding:10px;
		background:#D6D6CE;
		opacity:1;
}

.room_details_tab,.galery_tab,.hotel_details_tab
{

background:url(images/tab.png);
opacity:0.4;
background-size:100% 100%;
padding:10px;

}



.room_tb, .galery_tb, .hotels_tb
{
	color:#FFF;
	text-decoration:none;
	font-weight:bold;
	font-family:Arial, Helvetica, sans-serif;
}

#price_text
{
background-color: skyblue;
    border: 1px solid #000000;
    color: #000;
    padding: 10px;
}
#tabs_table
{
	font-size:12px;
}


/*////////////////////////////////////////////*/			
        </style>
<style type="text/css">
/*Galery*/
#picture_panel
{
	float:left;
	background:#50504D;
	padding:10px;

	
}
#tumbnails_panel
{
	float:left;
	background:#50504D;
	padding:10px;
	
}
#tumbnails_frame
{
	background:#FFF;
	width:210px;
	min-height:50px;
	max-height:100px;
	width: 226px;
	overflow:auto;
	border:1px solid #000;
}

#picture_frame
{

	background:#000;
	min-width:500px;
	min-height:300px;

	
}
#photos_disclaimer
{
	background:#50504D;
	padding:10px;
	float:left;
	
}
#disclaimer_content
{
    width: 210px;;
	background:#ffffff;
}
#galery_panel
{
	display:compact;
	background:#D6D6CE;
	padding:20px;
	height: 325px;

}
.tumbnail_picture
{
border:1px solid #000;
}
.full_size_picture
{
	border:2px solid #000;
}
</style>

        
        <script> 
            function SetRating(imgvar,starsCount)
            {
		

                var number = Math.round(starsCount);
                if(number != 0){
                    if(!$(imgvar).parent().find("span").hasClass("hidden"))
                        $(imgvar).parent().find("span").addClass("hidden");
                    if(!$(imgvar).hasClass("hidden")){
                        $(imgvar).removeClass("hidden");
                    }
                    $(imgvar).attr("src","../../images/rating/star"+number+".png");

                     
                }else
				{ 
                    $(imgvar).addClass("hidden");
                    $(imgvar).parent().find("span").removeClass("hidden");
                }
            }
////////////////////////////////////////////////////////



function a_click(clicked_item,id)
{

	switch (clicked_item)
	{
		case 1:
			
			if(document.getElementById("hotels"+id).style.display=="block"){
			
			document.getElementById("hotels"+id).style.display="none";		
			document.getElementById('hotel_details_tab'+id).style.background="url(images/tab.png)";
			document.getElementById('hotel_details_tab'+id).style.opacity="0.4";
			document.getElementById('hotel_details_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('hotels_tb'+id).style.color="#fff";		
			document.getElementById("tb_hotel_hidden"+id).value=0;
				}
				else
				{
			
			document.getElementById("hotels"+id).style.display="block";
			document.getElementById('hotel_details_tab'+id).style.background="url(images/tab_hover.png)";
			document.getElementById('hotel_details_tab'+id).style.opacity="1";
			document.getElementById('hotel_details_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('hotels_tb'+id).style.color="#000";
			document.getElementById("tb_hotel_hidden"+id).value=1;
			
				}
				
			document.getElementById("rooms"+id).style.display="none";
			document.getElementById("galery"+id).style.display="none";
			
		
			
			document.getElementById('room_details_tab'+id).style.background="url(images/tab.png)";
			document.getElementById('room_details_tab'+id).style.opacity="0.4";
			document.getElementById('room_details_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('room_tb'+id).style.color="#fff";
			
			document.getElementById('galery_tab'+id).style.background="url(images/tab.png)";
			document.getElementById('galery_tab'+id).style.opacity="0.4";
			document.getElementById('galery_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('galery_tb'+id).style.color="#fff";
			
			
			document.getElementById("tb_room_hidden"+id).value=0;
			document.getElementById("tb_galery_hidden"+id).value=0;
			
		
		
		
		
		break;
		
		case 2:

			document.getElementById("hotels"+id).style.display="none";
			
			if(document.getElementById("rooms"+id).style.display=="block")
			{
			document.getElementById("rooms"+id).style.display="none"
			document.getElementById('room_details_tab'+id).style.background="url(images/tab.png)";
			document.getElementById('room_details_tab'+id).style.opacity="0.4";
			document.getElementById('room_details_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('room_tb'+id).style.color="#fff";
				document.getElementById("tb_room_hidden"+id).value=0;
			}
			else
			{
				document.getElementById("rooms"+id).style.display="block"
			document.getElementById('room_details_tab'+id).style.background="url(images/tab_hover.png)";
			document.getElementById('room_details_tab'+id).style.opacity="1";
			document.getElementById('room_details_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('room_tb'+id).style.color="#000";
				document.getElementById("tb_room_hidden"+id).value=1;
			}
			
			document.getElementById("galery"+id).style.display="none";
			
			document.getElementById('hotel_details_tab'+id).style.background="url(images/tab.png)";
			document.getElementById('hotel_details_tab'+id).style.opacity="0.4";
			document.getElementById('hotel_details_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('hotels_tb'+id).style.color="#fff";
			
			document.getElementById('galery_tab'+id).style.background="url(images/tab.png)";
			document.getElementById('galery_tab'+id).style.opacity="0.4";
			document.getElementById('galery_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('galery_tb'+id).style.color="#fff";
			
			document.getElementById("tb_hotel_hidden"+id).value=0;
		
			document.getElementById("tb_galery_hidden"+id).value=0;
		break;
		
		default:
			document.getElementById("hotels"+id).style.display="none";
			document.getElementById("rooms"+id).style.display="none";
			
			if(document.getElementById("galery"+id).style.display=="block"){
				
				document.getElementById("galery"+id).style.display="none";
				document.getElementById('galery_tab'+id).style.background="url(images/tab.png)";
				document.getElementById('galery_tab'+id).style.opacity="0.4";
				document.getElementById('galery_tab'+id).style.backgroundSize="100% 100%";
				document.getElementById('galery_tb'+id).style.color="#fff";
				document.getElementById("tb_galery_hidden"+id).value=0;
			}
			else
			{
				document.getElementById("galery"+id).style.display="block";
				document.getElementById('galery_tab'+id).style.background="url(images/tab_hover.png)";
				document.getElementById('galery_tab'+id).style.opacity="1";
				document.getElementById('galery_tab'+id).style.backgroundSize="100% 100%";
				document.getElementById('galery_tb'+id).style.color="#000";
				document.getElementById("tb_galery_hidden"+id).value=1;
				
			}
			document.getElementById('hotel_details_tab'+id).style.background="url(images/tab.png)";
			document.getElementById('hotel_details_tab'+id).style.opacity="0.4";
			document.getElementById('hotel_details_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('hotels_tb'+id).style.color="#fff";
			
			document.getElementById('room_details_tab'+id).style.background="url(images/tab.png)";
			document.getElementById('room_details_tab'+id).style.opacity="0.4";
			document.getElementById('room_details_tab'+id).style.backgroundSize="100% 100%";
			document.getElementById('room_tb'+id).style.color="#fff";
				
		
			
			document.getElementById("tb_hotel_hidden"+id).value=0;
			document.getElementById("tb_room_hidden"+id).value=0;

			
		
	}	
	

}


function a_hover(item_hovered,id)
{
	switch(item_hovered)
	{
		case 1:
			if(document.getElementById("tb_hotel_hidden"+id).value!=1)
			{
				document.getElementById("hotels_tb"+id).style.color="#000";
				document.getElementById("hotels_tb"+id).style.textDecoration="none";
				document.getElementById("hotels_tb"+id).style.fontWeight="bold";
				document.getElementById("hotels_tb"+id).style.fontFamily="Arial, Helvetica, sans-serif";
				document.getElementById("hotel_details_tab"+id).style.background="url(images/tab_hover.png)";
				document.getElementById("hotel_details_tab"+id).style.opacity="0.4";
				document.getElementById("hotel_details_tab"+id).style.backgroundSize="100% 100%";
				document.getElementById("hotel_details_tab"+id).style.padding="10px";
			}
		break;
		
		case 2:
			if(document.getElementById("tb_room_hidden"+id).value!=1)
			{
				document.getElementById("room_tb"+id).style.color="#000";
				document.getElementById("room_tb"+id).style.textDecoration="none";
				document.getElementById("room_tb"+id).style.fontWeight="bold";
				document.getElementById("room_tb"+id).style.fontFamily="Arial, Helvetica, sans-serif";
				document.getElementById("room_details_tab"+id).style.background="url(images/tab_hover.png)";
				document.getElementById("room_details_tab"+id).style.opacity="0.4";
				document.getElementById("room_details_tab"+id).style.backgroundSize="100% 100%";
				document.getElementById("room_details_tab"+id).style.padding="10px";
			}

		break;
		
		default:
			if(document.getElementById("tb_galery_hidden"+id).value!=1)
			{					
				document.getElementById("galery_tb"+id).style.color="#000";
				document.getElementById("galery_tb"+id).style.textDecoration="none";
				document.getElementById("galery_tb"+id).style.fontWeight="bold";
				document.getElementById("galery_tb"+id).style.fontFamily="Arial, Helvetica, sans-serif";
				document.getElementById("galery_tab"+id).style.background="url(images/tab_hover.png)";
				document.getElementById("galery_tab"+id).style.opacity="0.4";
				document.getElementById("galery_tab"+id).style.backgroundSize="100% 100%";
				document.getElementById("galery_tab"+id).style.padding="10px";
			}
	}
}


function a_mouseout(item_mouseout,id)
{
	switch(item_mouseout)
	{
		case 1:
			if(document.getElementById("tb_hotel_hidden"+id).value!=1)
			{
				document.getElementById("hotels_tb"+id).style.color="#fff";
				document.getElementById("hotels_tb"+id).style.textDecoration="none";
				document.getElementById("hotels_tb"+id).style.fontWeight="bold";
				document.getElementById("hotels_tb"+id).style.fontFamily="Arial, Helvetica, sans-serif";
				
				document.getElementById("hotel_details_tab"+id).style.background="url(images/tab.png)";
				document.getElementById("hotel_details_tab"+id).style.opacity="0.4";
				document.getElementById("hotel_details_tab"+id).style.backgroundSize="100% 100%";
				document.getElementById("hotel_details_tab"+id).style.padding="10px";
			}
		break;
		
		case 2:
			if(document.getElementById("tb_room_hidden"+id).value!=1)
			{
			document.getElementById("room_tb"+id).style.color="#fff";
			document.getElementById("room_tb"+id).style.textDecoration="none";
			document.getElementById("room_tb"+id).style.fontWeight="bold";
			document.getElementById("room_tb"+id).style.fontFamily="Arial, Helvetica, sans-serif";
			
			document.getElementById("room_details_tab"+id).style.background="url(images/tab.png)";
			document.getElementById("room_details_tab"+id).style.opacity="0.4";
			document.getElementById("room_details_tab"+id).style.backgroundSize="100% 100%";
			document.getElementById("room_details_tab"+id).style.padding="10px";
			}
		break;
		
		default:
		
			if(document.getElementById("tb_galery_hidden"+id).value!=1)
			{
				document.getElementById("galery_tb"+id).style.color="#fff";
				document.getElementById("galery_tb"+id).style.textDecoration="none";
				document.getElementById("galery_tb"+id).style.fontWeight="bold";
				document.getElementById("galery_tb"+id).style.fontFamily="Arial, Helvetica, sans-serif";
				
				document.getElementById("galery_tab"+id).style.background="url(images/tab.png)";
				document.getElementById("galery_tab"+id).style.opacity="0.4";
				document.getElementById("galery_tab"+id).style.backgroundSize="100% 100%";
				document.getElementById("galery_tab"+id).style.padding="10px";
			}
	}
}

////////////////////////////////////////////////////////			
        </script>
<script type="text/javascript">
//Galery
function show_picture(index,hotelid)
{

for(i=0;i<document.getElementById('picture_number'+hotelid).value;i++)
{
	
	if(i!=index)
	{
		document.getElementById('picture'+hotelid+i).style.display="none";

	}
	else
	{
		
                var width=document.getElementById('picture'+hotelid+i).width;
                var height=document.getElementById('picture'+hotelid+i).height;    
                var ratio=width/height;


/*                    alert(width+" "+height);*/
 /*                   alert(ratio+" "+500/300);*/
                    if(ratio<500/300)
                    {
                        document.getElementById('picture'+hotelid+i).height=300;
                    }
                        else
                    {
                        document.getElementById('picture'+hotelid+i).width=500;
                    }
               document.getElementById('picture'+hotelid+i).style.display="block";
	}

	
}
	
}

</script>
        
    </head>
    
    <body style="top: -16px; position: relative;">
        <?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
    
        <?php  $_smarty_tpl->tpl_vars['hotel'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hotel']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['hotelArray']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hotel']->key => $_smarty_tpl->tpl_vars['hotel']->value){
$_smarty_tpl->tpl_vars['hotel']->_loop = true;
?>
        	<input id="picture_number<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
"type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['nrOfPictures'];?>
" />
            <div id="hotel-division">
                <div id="hotel-ribbon-offers" class="hidden border-on" >
                    <img src="" />
                    <span>Promotion:</span>
                    <span id="hotel-text">Discount 30 % -- Book now !&nbsp;&nbsp;&nbsp;</span>
                </div>
                <div id="hotel-data" class="border-on marginless" >
                    <img class="thumbnailImage inline-block left" src="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['thumbnailUrl'];?>
" />
                    <div id="hotel-content" class="inline-block right">
                        <span id="hotel-name-price">
                            <h3 class="left"><?php echo $_smarty_tpl->tpl_vars['hotel']->value['hotelName'];?>
 </h3>
                            
                            <h3 class="right" id="price_text">Avg rate: <?php echo intval(($_smarty_tpl->tpl_vars['hotel']->value['lRate']+$_smarty_tpl->tpl_vars['hotel']->value['hRate'])/2);?>

   								
                            </h3>
                            
                        </span>
                        <span id="hotel-short-desc" >
                            <?php echo mb_convert_encoding($_smarty_tpl->tpl_vars['hotel']->value['shortDesc'], 'UTF-8', 'HTML-ENTITIES');?>

                        </span>
                    </div>
                    <span id="" class=""></span>
                    <span id="" class=""></span>
                    <span id="" class=""></span>
<!--
                    <div id="hotel-details-expansion" class="">
                        <span id="hotel-bottom-details" class="left">Camere libere: 4</span>
                        <span class="spacer left">|</span>
                        <span id="hotel-cancel-policy" class="left">Polita de anulare</span>
                        <span class="spacer left">|</span>
                        <span id="hotel-reviews" class="left">Vezi comentarii</span>
                        <span class="spacer left">|</span>
                        <span id="hotel-maps" class="left">Vezi hotelul pe harta</span>
                        <span id="hotel-star-rating" class="right">
                            <b>Star Rating:</b>
                            <span style="width: 120px;">
                                <img class="rating" src="../../images/rating/star1.png" 
                                     height="19px" onload="SetRating(this,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['rating'];?>
);"/>
                            </span>
                            <span class="rating hidden"></span>
                        </span>


                    </div>
                    -->
                    
                </div>
                <!------------------------------------------------------------------------------------------------------>
                
<div id="hotel_tabs">

    <div>
    	
        <table cellspacing="0" id="tabs_table">
        <tr>
            <td class="hotel_details_tab" id="hotel_details_tab<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)"  onmouseout="a_mouseout(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onclick="a_click(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">
                <input type="hidden" id="tb_hotel_hidden<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" value="0" />
                <label class="hotels_tb" id="hotels_tb<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
"  onmouseover="a_hover(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)"  >Hotels Details  </label>
            </td>
            <td class="room_details_tab" id="room_details_tab<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onclick="a_click(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">
                <input type="hidden" id="tb_room_hidden<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" value="0" />
                <label class="room_tb" id="room_tb<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" >Rooms Details  </label>
            </td>
            <td class="galery_tab" id="galery_tab<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onclick="a_click(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
);show_picture(0,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">
                 <input type="hidden" id="tb_galery_hidden<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" value="0" />
                <label class="galery_tb" id="galery_tb<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">Galery </label>
            </td>
            <td>
    
            </td>
            <td width="100px">
            
            </td>
    
                <td  id="hotel_room<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" class="hotel_options">
                    Rooms:4
                </td>
                
                <td id="hotel_cancelation_policy<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" class="hotel_options">
                    <a href="#" class="link">
                    Cancelation policy         	
                    </a>
                </td>
                
                <td id="hotel_coments<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" class="hotel_options">
                    <a href="#" class="link"> Comments </a>
                </td>
                
                <td id="hotel_map<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" class="hotel_options">
                    <a href="#" class="link"> Map </a>
                </td>
                
                <td class="hotel_options">
                    Star Rating <img id="star_rating" src="./images/rating/star1.png"  height="15" onload="SetRating(this,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['rating'];?>
);" />
                </td>
            
            </tr>
        </table>
    </div>
    
    <div class="hotels" id="hotels<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" style="display:none;">
    	<?php echo $_smarty_tpl->tpl_vars['hotel']->value['propertyDetails'];?>

    </div>
    
    <div class="rooms" id="rooms<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" style="display:none;">
        <?php  $_smarty_tpl->tpl_vars['roomType'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['roomType']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['hotel']->value['roomTypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['roomType']->key => $_smarty_tpl->tpl_vars['roomType']->value){
$_smarty_tpl->tpl_vars['roomType']->_loop = true;
?>
            <div>
                <span style="font-weight:bold; font-size: 20px;"> <?php echo $_smarty_tpl->tpl_vars['roomType']->value['description'];?>
 </span>
                <span id="book_span">
                    <!--<form method="POST" action="./bookingForm.php">
                        <input type="hidden" value="{}" name="hotelId"></input>
                        <input type="hidden" value="" name="supplierType"></input>
                        <input type="hidden" value="" name="rateKey"></input>
                        <input type="hidden" value="" name="roomTypeCode"></input>
                        <input type="hidden" value="" name="rateCode"></input>
                        <input type="hidden" value="" name="chargeableRate"></input>
                        <h3 class="right" style="padding-right:20px;">
                            <input type="submit" value="Book now" id="search_button">
                        </h3>
                    </form>-->
					<h3 class="right" style="padding-right:20px;">
						<input type="button" value="Book now" id="search_button" onclick=""></input>
						
					</h3>
                </span> 
                <div> <?php echo $_smarty_tpl->tpl_vars['roomType']->value['descriptionLong'];?>
 </div>
            </div>
            <br />
        <?php } ?>
    </div>

    <div class="galery"  id="galery<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" style="display:none;">
        
<!--
		<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value['url'];?>
" style="<?php echo $_smarty_tpl->tpl_vars['image']->value['style'];?>
" <?php echo $_smarty_tpl->tpl_vars['image']->value['width_p'];?>
 <?php echo $_smarty_tpl->tpl_vars['image']->value['height_p'];?>
  />

    
            <img src=<?php echo $_smarty_tpl->tpl_vars['image']->value['url'];?>
 />
-->
<div id="galery_panel" >
        <div id="picture_panel">
            <div id="picture_frame" align="center">            	
            	 <?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['image']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['hotel']->value['hotelImages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
$_smarty_tpl->tpl_vars['image']->_loop = true;
?>
                    <?php $_smarty_tpl->tpl_vars['ok'] = new Smarty_variable(1, null, 0);?>
                    <?php if ($_smarty_tpl->tpl_vars['ok']->value==1){?>
                        <img src=<?php echo $_smarty_tpl->tpl_vars['image']->value['url'];?>
 style="block"  id="picture<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
<?php echo $_smarty_tpl->tpl_vars['image']->value['nr_picture'];?>
" />
                        <?php $_smarty_tpl->tpl_vars['ok'] = new Smarty_variable(0, null, 0);?>
                    <?php }else{ ?>
                        <img src=<?php echo $_smarty_tpl->tpl_vars['image']->value['url'];?>
 style="none"  id="picture<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
<?php echo $_smarty_tpl->tpl_vars['image']->value['nr_picture'];?>
" />
                    <?php }?>
                <?php } ?>
            </div>
        </div>
        <div id="tumbnails_panel">
            <div id="tumbnails_frame" align="center">
	<?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['image']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['hotel']->value['hotelImages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
$_smarty_tpl->tpl_vars['image']->_loop = true;
?>
    <label onclick="show_picture(<?php echo $_smarty_tpl->tpl_vars['image']->value['nr_picture'];?>
,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">
    <img src=<?php echo $_smarty_tpl->tpl_vars['image']->value['thumbUrl'];?>
 width="50" height="40" />
    </label>
      <?php } ?>
          </div>
        <div id="photos_disclaimer">
        	<div id="diclaimer_title">
            Photo disclaimer
            </div>
           <div id="disclaimer_content">
            Photo disclaimer text.
            </div>
         </div>  
        </div>
        
    </div>

      
    </div>

</div>
</div>



</div>

</div>
<!------------------------------------------------------------------------------------------------------>

            </div>
        
        <?php } ?>
        <?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

        
    </body>
</html>
<?php }} ?>